﻿$.ready(select1());
//医院下拉框的值
function select1() {
    //调用ajax
    $.ajax({
        url: "/Default/select1",
        type: "post",
        success: function (da) {
            $("#txtHosp").append("<option value='0'>全部</option>")
            for (var i = 0; i < da.length; i++) {
                $("#txtHosp").append("<option value='" + da[i].Hosp_ID + "'>" + da[i].Hosp_Name + "</option>")
            }

        }

    })
}
$.ready(select2());
//科室下拉框的值
function select2() {
    //调用ajax
    $.ajax({
        url: "/Default/select2",
        type: "post",
        success: function (da) {
            $("#txtOffice").append("<option value='0'>全部</option>")
            for (var i = 0; i < da.length; i++) {
                $("#txtOffice").append("<option value='" + da[i].Office_ID + "'>" + da[i].Office_Name + "</option>")
            }

        }

    })

}
$.ready(select3());
//医生下拉框的值
function select3() {
    //调用ajax
    $.ajax({
        url: "/Default/select3",
        type: "post",
        success: function (da) {
            $("#txtDoctor").append("<option value='0'>全部</option>")
            for (var i = 0; i < da.length; i++) {
                $("#txtDoctor").append("<option value='" + da[i].Doctor_ID + "'>" + da[i].Doctor_Name + "</option>")
            }

        }

    })

<<<<<<< .mine
}
//获取挂号类型
$.ready(select4());
//医生下拉框的值

function Gh() {
    //获取文本框的值
    var Gh_Reason = $("#Gh_Reason").val();
    var U_Name = $("#U_Name").val();
    var txtHosp = $("#txtHosp").val();
    var txtOffice = $("#txtOffice").val();
    var txtDoctor = $("#txtDoctor").val();
    var Gh_Time = $("#Gh_Time").val();
    //调用ajax
    $.ajax({
        url: "/Default/Index",
        type: "post",
        data: { Gh_Reason: Gh_Reason, U_Name: U_Name, txtHosp: txtHosp, txtOffice: txtOffice, txtDoctor: txtDoctor, Gh_Time: Gh_Time },
        success: function (data) {
            if (data > 0) {
                location.href = '/hospital/xianshi';
            }
            else {
                alert("挂号失败");
            }
        }

    })
||||||| .r24
=======
}
$.ready(select4());
function select4() {
    //调用ajax
    $.ajax({
        url: "/Default/select4",
        type: "post",
        success: function (da) {
            for (var i = 0; i < da.length; i++) {
                $("#txtGHTtype").append("<option value='" + da[i].Doctor_TypeId + "'>" + da[i].Doctor_TypeName + "</option>");
            }

        }

    })

>>>>>>> .r30
}